//
//  ZZNetWorkUploadRequest.m
//  ZZNetWorker
//
//  Created by ZengLiZhi on 2024/2/1.
//

#import "ZZNetWorkUploadRequest.h"

@implementation ZZNetWorkUploadRequest

- (instancetype)init
{
    self = [super init];
    if (self) {
        _mimeType = @"application/octet-stream";
        _name = @"file";
    }
    return self;
}

- (ZZNetWorkUploadRequest * _Nonnull (^)(NSData * _Nonnull))zz_data{
    return ^id (NSData *data){
        self.data = data;
        return self;
    };
}

- (ZZNetWorkUploadRequest * _Nonnull (^)(NSString * _Nonnull))zz_fileName{
    return ^id (NSString *fileName){
        self.fileName = fileName;
        return self;
    };
}

- (ZZNetWorkUploadRequest * _Nonnull (^)(NSString * _Nonnull))zz_name{
    return ^id (NSString *name){
        self.name = name;
        return self;
    };
}

- (ZZNetWorkUploadRequest * _Nonnull (^)(NSString * _Nonnull))zz_mimeType{
    return ^id (NSString *mimeType){
        self.mimeType = mimeType;
        return self;
    };
}

@end
